/**游戏界面 */
class GameScene extends ViewBase {
	public constructor() {
		super();
		this.skinName = "GameSceneSkin";
		this.once(egret.Event.ADDED_TO_STAGE, this.Init, this);
	}
	//------EUI---------------------------------
	/**返回主界面按钮 */
	private backBtn: eui.Button;
	//**排行榜 */
	public gp_rank: eui.Group;
	public lbl_rank1_name: eui.Label;
	public lbl_rank1_num: eui.Label;
	public lbl_rank1_src: eui.Image;
	public lbl_rank2_name: eui.Label;
	public lbl_rank2_num: eui.Label;
	public lbl_rank2_src: eui.Image;
	public lbl_rank3_name: eui.Label;
	public lbl_rank3_num: eui.Label;
	public lbl_rank3_src: eui.Image;
	public lbl_rank4_name: eui.Label;
	public lbl_rank4_num: eui.Label;
	public lbl_rank4_src: eui.Image;
	public lbl_rank5_name: eui.Label;
	public lbl_rank5_num: eui.Label;
	public lbl_rank5_src: eui.Image;
	/**左上角的时间 */
	public lbl_count: eui.Label;
	/**攻击group */
	public atk_gp: eui.Group;
	/**攻击 */
	public atk: eui.Image;
	/**死亡弹出group */
	public gp_over: eui.Group;
	public lbl_rank: eui.Label;
	public lbl_showoff: eui.Label;
	/**返回主界面 */
	public lbl_back: eui.Label;
	/**防御摇杆 */
	public def_gp: eui.Group;
	/**防御摇杆外圈 */
	public circle: eui.Image;
	/**防御摇杆内圈 */
	public ball: eui.Image;
	/**摇杆group */
	public ro_gp: eui.Group;
	/**摇杆外圈 */
	public role: eui.Image;
	/**遥感内部 */
	public qiu: eui.Image;
	/**摇杆 */
	public roleControl: roleControl;
	/**玩家 */
	private player: player;
	/**初始化 */
	private Init() {
		this.eventInit();
		this.dateinit();
		this.roleinit();
	}
	/**数据初始化 */
	private dateinit() {
		this.player = new player()
		this.addChild(this.player)
		this.player.x = this.player.y = 500;


	}
	/**事件初始化 */
	private eventInit() {
		this.backBtn.addEventListener(egret.TouchEvent.TOUCH_TAP, this.backBeginMain, this);
	}
	/**初始化摇杆 */
	private roleinit() {
		this.roleControl = new roleControl(this.qiu, this.role, this.ro_gp);
		this.roleControl.yaoganInit(this.stage);
	}
	/**返回开始界面 */
	private backBeginMain() {
		SceneManager.instance.SitchScene(SceneName.beginScene);
	}
	public reset() {

	};
	public destroy() {

	};
	public clear() {
		this.backBtn.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.backBeginMain, this);
	};
}